<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateConfAgentMainGamePlatsTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('conf_agent_main_game_plats', function(Blueprint $table)
		{
			$table->increments('id');
			$table->integer('plat_id');
			$table->integer('agent_id');
			$table->decimal('rate', 5, 4)->unsigned()->default(0.0000)->comment('分红比率');
			$table->boolean('status')->default(1)->comment('状态1=开启，0=关闭');
			$table->timestamps();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('conf_agent_main_game_plats');
	}

}
